package org.yoki.edu.image;

import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
import org.opencv.core.Scalar;
import org.yoki.edu.image.frame.MainWindow;
import org.yoki.edu.image.utils.NativeLoader;

import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException {
        // 得到指定路径中所有的资源文件
        try {
            NativeLoader.loader("natives");
        } catch (Exception e) {
            e.printStackTrace();
        }

        /*MainWindow ti = new MainWindow();
        ti.setSize(800, 600);
        ti.setVisible(true);*/

        System.out.println("Welcome to OpenCV " + Core.VERSION);
        Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
        System.out.println("dims = " + m.dims());
        System.out.println("dump = " + m.dump());
    }

}
